/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import Utility.PropReader;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import constants.CommonConstants;
/**
 *
 * @author Shuhail
 */
public class DBInitialize {
    
    
    String query="select * from new_table";
    
    public  void init() {
    try {
    
    InitializeConnection ic=new InitializeConnection();
    Connection conn=ic.getConnection();
    Statement st=conn.createStatement();
    ResultSet rs=st.executeQuery(query);
    while(rs.next()) {
        String a=rs.getString(2);
        System.out.println(a);
    }
    
}catch(Exception e) {
    e.printStackTrace();
        
    }
    
}
 public static void main(String[] args) {
     
     DBInitialize db=new DBInitialize();
     db.init();
 }
}